package com.todo.strategy.pipeline.application.handler.planRelation;

import com.todo.strategy.pipeline.application.entity.context.PlanRelationActionContext;
import com.todo.strategy.pipeline.application.remote.PlanRelationPipelineRemoteService;
import com.todo.strategy.pipeline.common.enums.OperateActionEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author azhebuxing
 * @date 2025/3/1 19:03
 * @description
 */
@Slf4j
@Component
public class PlanRelationDisableHandler extends AbstractPlanRelationOperateHandle{

    @Resource
    private PlanRelationPipelineRemoteService planRelationPipelineRemoteService;

    @Override
    protected Boolean doActionHandle(PlanRelationActionContext context) {
        return true;
    }

    @Override
    protected Boolean match(PlanRelationActionContext context) {
        return true;
    }

    @Override
    protected OperateActionEnum getStrategyActionEnum() {
        return OperateActionEnum.DISABLE;
    }
}
